package newview;

/**
 * @author TANGYE
 * @date 2021/7/25 9:37 上午
 **/
public class SingleTon {
    private static final SingleTon SINGLE_TON = new SingleTon();

    public static SingleTon getSingleTon() {
        return SINGLE_TON;
    }

    // ------------------------------------------------

    private static SingleTon INSTANCE = null;

    public static SingleTon getINSTANCE() {
        if (INSTANCE == null) {
            synchronized (SingleTon.class) {
                if (INSTANCE == null) {
                    INSTANCE = new SingleTon();
                }
            }
        }
        return INSTANCE;
    }
}
